﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.ExecutionContext;
using SlamDunk.MES.ReportView.Models;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.ExecutionContext
{
    /// <summary>
    /// 工单实际人员仓储接口
    /// </summary>
    public interface IWorkOrderActualPersonRepository : IEntityRepository<WorkOrderActualPerson>
    {
        #region # 获取工单实际人员列表 —— ICollection<WorkOrderActualPerson> Find(Guid workOrderId)
        /// <summary>
        /// 获取工单实际人员列表
        /// </summary>
        /// <param name="workOrderId">工单Id</param>
        /// <returns>工单实际人员列表</returns>
        ICollection<WorkOrderActualPerson> Find(Guid workOrderId);
        #endregion

        #region # 获取作业计划人员概要列表 —— ICollection<PersonSummaryInfo> GetPersonSummariesByExecutionPlan(...
        /// <summary>
        /// 获取作业计划人员概要列表
        /// </summary>
        /// <param name="executionPlanId">作业计划Id</param>
        /// <returns>人员概要列表</returns>
        ICollection<PersonSummaryInfo> GetPersonSummariesByExecutionPlan(Guid executionPlanId);
        #endregion
    }
}
